package com.hanma.dao;

import com.hanma.bean.Comments;

import java.util.List;

public interface CommentsDao {
    int insert(Comments comments);
    int delete(Integer id);
    int update(Comments comments);
    Comments find(Integer id);
    List<Comments> findAll(Integer nid);
    List<Comments> findAllUser(Integer uid);
    List<Comments> findAllUser(Integer uid, Integer start, Integer size);
    int updateHead(Integer uid, String img);

    int updateNickname(Integer uid, String nickname);
}
